package kr.pe.johnkim.checkmileage.mobile.rest.dao;

import kr.pe.johnkim.checkmileage.mobile.domain.CheckMileageBusinessKind;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport;

import java.util.List;

/**
 * Check Mileage 업종 관련 DAO 메소드들을 구현하는 클래스 이다.
 *
 * @author : johnkim <cale9797@gmail.com / Bettersoft, Inc.>
 * @date: 12. 10. 11.
 */
public class CheckMileageBusinessKindDaoImpl extends SqlMapClientDaoSupport implements CheckMileageBusinessKindDao {

    // SLF4J Logging
    private Logger logger = LoggerFactory.getLogger(CheckMileageBusinessKindDaoImpl.class);

    /**
     * 사용자 검색용 업종 목록을 가져 온다.
     *
     * @param checkMileageBusinessKind
     * @return
     */
    @Override
    public List<CheckMileageBusinessKind> selectBusinessKindList(CheckMileageBusinessKind checkMileageBusinessKind) {
        logger.info("selectBusinessKindList");

        return this.getSqlMapClientTemplate().queryForList("CHECKMILEAGE_BUSINESS_KINDS.selectBusinessKindList", checkMileageBusinessKind);
    }
}
